<!-- 首页 -->
<template>
  <div>
    <keep-alive>
      <router-view />
    </keep-alive>
    <van-tabbar route v-model="active">
      <van-tabbar-item replace to="/Loading" icon="home-o">
        装车
      </van-tabbar-item>
      <van-tabbar-item replace to="/UnLoading" icon="search">
        卸车
      </van-tabbar-item>
      <van-tabbar-item replace to="/My" icon="home-o"> 我的 </van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  name: 'home',
  components: {},
  data() {
    return {
      text: '',
      active: 0,
    };
  },

  computed: {},

  mounted() {
    this.$router.push('/Loading');
  },

  methods: {
    onClickLeft() {
      this.$router.back(-1);
    },
  },
};
</script>
<style lang='less' scoped>
</style>